package com.spring.cloud.alibaba.service.provider.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spring.cloud.alibaba.commons.params.StockParam;
import com.spring.cloud.alibaba.commons.pojo.ResponseVo;
import com.spring.cloud.alibaba.commons.pojo.StockInfo;

import java.util.List;

public interface IStockService extends IService<StockInfo> {

    ResponseVo findStockByGoodCode(String goodCode);

    ResponseVo  updateStockById(StockInfo stockInfo);

    ResponseVo saveOne(StockInfo stockInfo);

    ResponseVo saveBatch(List<StockInfo> stockInfoEntityList);

    ResponseVo queryListByCondition(StockParam stockParam);

    ResponseVo queryPageDataByCondition(int pageNo, int pageSize, StockParam stockParam);

}
